package com.zhyz.bookstore.dao;

import com.zhyz.bookstore.entity.OrderItems;
import com.zhyz.bookstore.entity.Orders;
import com.zhyz.bookstore.entity.User;

import java.util.List;

public interface OrderDao {
    List<Orders> queryOrdersByUser(User user);

    List<Orders> queryOrderByAdmin();

    boolean deleteOrderByOrderId(String orderId);

    boolean deliverOrder(String orderId,int status);

    void save(Orders o);

    User findUserByUserId(String userId);


}
